package com.example.qy_hd_demo.controller;

import com.example.qy_hd_demo.entity.HtMenu;
import com.example.qy_hd_demo.service.HtMenuService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * (HtMenu)表控制层
 *
 * @author zhangsw
 * @since 2020-12-21 17:17:15
 */
@RestController
@RequestMapping("htMenu")
public class HtMenuController {
    /**
     * 服务对象
     */
    @Resource
    private HtMenuService htMenuService;

    /**
     * 通过主键查询单条数据
     *
     * @param id 主键
     * @return 单条数据
     */
    @GetMapping("selectOne")
    public HtMenu selectOne(Integer id) {
        return this.htMenuService.queryById(id);
    }

}